﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace broMap.System.Models
{
    /// <summary>
    /// 热榜评论
    /// </summary>
    public class HotListComment
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 关联每日热榜表的 id
        /// </summary>
        public int HotListId { get; set; }

        /// <summary>
        /// 评论用户的 id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 评论内容
        /// </summary>
        public string Content { get; set; } = string.Empty;

        /// <summary>
        /// 点赞数
        /// </summary>
        public int Likes { get; set; }

        /// <summary>
        /// 父评论 id，用于回复功能，若为顶级评论则为 NULL
        /// </summary>
        public int? ParentCommentId { get; set; }

        /// <summary>
        /// 评论来源，hot_platform 表示热榜平台热门评论，self_platform 表示自己平台产生的评论
        /// </summary>
        public string CommentSource { get; set; } = "self_platform";

        /// <summary>
        /// 评论创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 关联的热榜对象（非表字段）
        /// </summary>
        public DailyHotList? DailyHotList { get; set; }
    }
}
